package org.kms.pojo;

public class Grade {
    private int gradeId;
    private String gradeName;
    private Integer gIId;

    public int getGradeId() {
        return gradeId;
    }

    public void setGradeId(int gradeId) {
        this.gradeId = gradeId;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public Integer getgIId() {
        return gIId;
    }

    public void setgIId(Integer gIId) {
        this.gIId = gIId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Grade grade = (Grade) o;

        if (gradeId != grade.gradeId) return false;
        if (gradeName != null ? !gradeName.equals(grade.gradeName) : grade.gradeName != null) return false;
        if (gIId != null ? !gIId.equals(grade.gIId) : grade.gIId != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = gradeId;
        result = 31 * result + (gradeName != null ? gradeName.hashCode() : 0);
        result = 31 * result + (gIId != null ? gIId.hashCode() : 0);
        return result;
    }
}
